

<!--end footer-->

<div class="clear"></div>

<!--footer container starts-->
<div id="footer">

<?php 
$CI =& get_instance();
$CI->load->library("front/footer_lib");
$CI->footer_lib->display_footer();
$CI->footer_lib->display_footer_element();
?>
</div>
<!--foter container ends-->
<?php /*?>
<script type="text/javascript" src="<?php echo URL_PLUGINS?>j_alert/jquery.alerts.js"></script>
    
<script type="text/javascript" src="<?php echo URL_JS?>jquery.tabSlideOut.v1.4.1.js"></script>

<script type="text/javascript" src="<?php echo URL_JS?>captcha.js"></script>
<?php */ ?>

<script type="text/javascript" src="<?php echo URL_JS?>jquery.validate.js"></script>

<script type="text/javascript">
function refreshCaptcha()
{
	new_captcha('<?php echo URL_BASE."plugins/captcha/image.php"?>');
}
$(document).ready(function(){
    
    /*$('.slide-out-div').css('display','');
    $('.slide-out-div').tabSlideOut({
            tabHandle: '.handle',                     //class of the element that will become your tab
            pathToTabImage: '<?php echo URL_BASE?>images/feed_back.jpg', //path to the image for the tab //Optionally can be set using css
            imageHeight: '98px',                     //height of tab image           //Optionally can be set using css
            imageWidth: '26px',                       //width of tab image            //Optionally can be set using css
            tabLocation: 'left',                      //side of screen where tab lives, top, right, bottom, or left
            speed: 1221,                               //speed of animation
            action: 'click',                          //options: 'click' or 'hover', action to trigger animation
            topPos: '35px',                          //position from the top/ use if tabLocation is left or right
            leftPos: '26px',                                   //position from left/ use if tabLocation is bottom or top
            fixedPosition: true                      //options: true makes it stick(fixed position) on scroll
        });*/
	
    $('.handle').click(function(){
		refreshCaptcha();
	});	
	
	/*$('#feedback').validate({
        rules:{
            txtName:{required: true},
            txtEmail:{required: true, email:true},
            txtMessage:{required:true},
			captchaCode:{required:true}
            
        },
        messages:{
            txtName:{required:"Please enter your name."},
            txtEmail:{
                required:"Please enter your email.",
                email:"Please enter a valid email."
            },
            txtMessage:{required:"Please enter your message."},
			captchaCode:{required:"Please enter security code"}
        }
    });*/
   /*
     $('#login_top').validate({
            rules:{
                top_email:{required:function(element){if(element.value == '' || element.value=='email'){return true; }else{ return false;}}, email:true},
                top_pswd:{required:function(element){ if(element.value=='yourpassword'){element.value='';} if(element.value == '' || element.value=='yourpassword'){ return true; }else{ return false;}}}
            },
            messages:{
                top_email:{required:"Enter email",email:"Enter valid email"},
                top_pswd:{required:"Enter password"}
            }
            
        });
    */
    <?php
      if($_SESSION['MCS_MEMBER']=='')
      {
    ?>
    
    $('#login_top').submit(function(){
     
     var top_email = $('#top_email').val();
     var top_pswd  = $('#top_pswd').val();
    		
     
     if((top_email == 'email' || top_email == ''))
     {
        //$.alerts.okButton = '';
        jAlert('Please enter your email.', 'Email required',function(){$('#top_email').focus();});
        return false;
     }
     else if(!checkEmailValid(top_email))
     {
        jAlert('Please enter a valid email.', 'Email required',function(){$('#top_email').focus();});
        return false;
     }
     
     if(top_pswd == 'yourpassword' || top_pswd =='')
     {
        
        jAlert('Please enter your password.', 'Password required',function(){$('#top_pswd').focus();});        
        return false;
     }
     
     return true;   
    
    });
    
    <?php 
       }
    ?>
    
       
     $('#frmSubscribeNewsletter').submit(function(){
     
     var top_email = $('#txtSubscriberEmail').val();
     
     
     if((top_email == 'e-mail address' || top_email == ''))
     {
        //$.alerts.okButton = '';
        jAlert('Please enter your email.', 'Subscriber Email required',function(){$('#txtSubscriberEmail').focus();});
        return false;
     }
     else if(!checkEmailValid(top_email))
     {
        jAlert('Please enter a valid email.', 'Valid Email required',function(){$('#txtSubscriberEmail').focus();});
        return false;
     }
     
     
     return true;   
    
    });
    
        
});

function checkEmailValid(emailvalue){
    
    return /^((([a-z]|\d|[!#\$%&'\*\+\-\/=\?\^_`{\|}~]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])+(\.([a-z]|\d|[!#\$%&'\*\+\-\/=\?\^_`{\|}~]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])+)*)|((\x22)((((\x20|\x09)*(\x0d\x0a))?(\x20|\x09)+)?(([\x01-\x08\x0b\x0c\x0e-\x1f\x7f]|\x21|[\x23-\x5b]|[\x5d-\x7e]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(\\([\x01-\x09\x0b\x0c\x0d-\x7f]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]))))*(((\x20|\x09)*(\x0d\x0a))?(\x20|\x09)+)?(\x22)))@((([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.)+(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.?$/i.test(emailvalue);
}

</script>


<!-- wrap -->


<!-- BEGIN LivePerson Monitor. --><script language='javascript'> var lpMTagConfig = {'lpServer' : "server.iad.liveperson.net",'lpNumber' : "73285208",'lpProtocol' : "http"}; function lpAddMonitorTag(src){if(typeof(src)=='undefined'||typeof(src)=='object'){src=lpMTagConfig.lpMTagSrc?lpMTagConfig.lpMTagSrc:'/hcp/html/mTag.js';}if(src.indexOf('http')!=0){src=lpMTagConfig.lpProtocol+"://"+lpMTagConfig.lpServer+src+'?site='+lpMTagConfig.lpNumber;}else{if(src.indexOf('site=')<0){if(src.indexOf('?')<0)src=src+'?';else src=src+'&';src=src+'site='+lpMTagConfig.lpNumber;}};var s=document.createElement('script');s.setAttribute('type','text/javascript');s.setAttribute('charset','iso-8859-1');s.setAttribute('src',src);document.getElementsByTagName('head').item(0).appendChild(s);} if (window.attachEvent) window.attachEvent('onload',lpAddMonitorTag); else window.addEventListener("load",lpAddMonitorTag,false);</script>


</body>
</html>
